package com.sumainfor.pc.market.controller.directormarket;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.dao.DmMinistryMapper;
import com.sumainfor.pc.market.service.DmMinistryService;
import com.sumainfor.pc.market.service.tenant.SignedProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @Date 2018年11月7日
 * @Describe 银行
 */
@RestController
@RequestMapping("/directormarket/DmMinistryController")
public class DmMinistryController implements Serializable {
    @Autowired
    private DmMinistryService dmMinistryService;

    /**
     * 插叙服务中心的下拉框
     */
    @GetMapping("/getMinistryList")
    public JsonResult getTenantList(@RequestParam Map<String, Object> params) {
        JsonResult result = new JsonResult();
        List<Map<String, Object>> list = dmMinistryService.getMinistryList(params);
        if (list != null) {
            result.put(list);
        } else {
            result.put("服务器繁忙");
        }
        return result;
    }
}
